package com.html2rss.models;

import com.html2rss.models.Query;
import com.html2rss.core.HttpURL;
import com.sun.tools.javac.util.Pair;

import java.util.List;


/**
 * User: vvs
 * Date: 12.04.2007
 * Time: 22:58:34
 */
public class WizardHistoryPage {
    enum Rule {GO_TO_PAGE, GET_DATA, FOR_EACH}
    Rule rule;
    private Query query;
    private String requestMethod;
    private List< Pair <String, String> > parameters;
    private HttpURL startPage;


    public HttpURL getStartPage() {
        return startPage;
    }

    public void setStartPage(HttpURL startPage) {
        this.startPage = startPage;
    }

    boolean isFirstPage() {
        return startPage != null;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public List<Pair<String, String>> getParameters() {
        return parameters;
    }

    public void setParameters(List<Pair<String, String>> parameters) {
        this.parameters = parameters;
    }
}
